home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!intellic.demon.co.uk
- From: Chris Trueman <truemanc@intellic.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: SYSTEM CALL RESULT
- Date: Tue, 02 Jan 96 19:01:49 GMT
- Organization: IntelliCorp
- Distribution: world
- Message-ID: <820609309snz@intellic.demon.co.uk>
- References: <4cbn2i$env@bisance.citi2.fr>
- Reply-To: truemanc@intellic.demon.co.uk
- X-NNTP-Posting-Host: intellic.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Mail2News-Path: intellic.demon.co.uk
-
- In article <4cbn2i$env@bisance.citi2.fr>
- labed@math-info.univ-paris5.fr "A.Labed" writes:
-
- >
- >Hi,
- >
- >Is there a way to get the result of a
- >system call within a C program.
- >example :
-
-
- The exit value of a process is returned by the system call. Therefore
- if you wrote a small script which computed the line count of the
- current list of processes and then exited with this value you could
- pick it up as the return value of the system call.
-
-
-
- - Chris
-
- -============================================================================-
- IntelliCorp Applications Consultant / E-mail: truemanc@intellic.demon.co.uk
- LiveModel and PowerModel are part / CServe: 100255,701
- of IntelliCorp's MODELWORKS / Tel : +44 (0)1344 305305
- application development suite. / Fax : +44 (0)1344 305100
- -============================================================================-
-